<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragment_base::head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>标签</title>
    <link rel="stylesheet"
          href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/common.css">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="../static/js/custom.js"></script>
    <script src="../static/js/semantic.min.js"></script>
</head>
<body>

<div class="mainContent">

<!--导航-->
<nav th:replace="fragment_base::menu(2)" class="ui inverted attached segment head-tab-padding">
    <div class="ui container">
        <!--stackable 表示可堆叠，自适应-->
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">分类</h2>
            <a class="menu-item item mobile-hide" href="#"><i class="teal code icon"></i>首页</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal idea icon"></i>分类</a>
            <a class="menu-item item mobile-hide" href="#"><i
                    class="teal tags icon"></i>标签</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal time icon"></i>归档</a>
            <a class="menu-item item mobile-hide" href="#"><i class="teal info icon"></i>关于我</a>
            <div class="menu-item right item mobile-hide">
                <div class="ui icon transparent inverted input">
                    <input placeholder="搜索..." type="text">
                    <i class="teal search icon"></i>
                </div>
            </div>
        </div>
    </div>
    <!--菜单按钮-->
    <a id="menu-toggle" class=" ui black icon button bar-position mobile-show" href="#">
        <i class="sidebar icon"></i>
    </a>
</nav>

<!--中间内容-->
<div class="center-padding">
    <div class="ui container">
        <!--顶部-->
        <div class="ui  attached segment">
            <div class="ui middle aligned two column grid ">
                <div class="column">
                    <h3 class="ui teal header">标签</h3>
                </div>
                <div class="right aligned column">
                    共<h3 th:text="${#arrays.length(tagList)}" class="ui orange header inline-block">
                    10</h3>个
                </div>
            </div>
        </div>

        <!--标签列表-->
        <div class="ui attached segment">
            <a th:each="tag:${tagList}"
               th:href="@{/tags/{id}(id=${tag.id})}"
               th:classappend="${tag.id==selectId}?'teal'"
               class="ui basic left pointing label margin" href="#">
                <span th:text="|${tag.tagName} &nbsp; ${#arrays.length(tag.blogs)}|">Android 15</span>
            </a>
            <!--/*-->
            <a class="ui  basic left pointing label margin" href="#"
               target="_blank">Java
                12</a>
            <a class="ui  basic left pointing label margin" href="#"
               target="_blank">Spring
                13</a>
            <a class="ui  basic left pointing label margin" href="#"
               target="_blank">源码解析
                13</a>
            <!--*/-->
        </div>

        <!--博客内容-->
        <div class="ui attached segment">
            <!--具体内容1-->
            <div th:each="blog:${tagBlogListPage.content}"
                 class="ui padded vertical segment center-padding">
                <!--mobile reversed  手机端将图片放上面-->
                <div class="ui mobile reversed stackable grid">
                    <!--文字部分-->
                    <div class="eleven wide column">
                        <h3 class="ui header">
                            <a class="font-text-bl" target="_blank"
                               th:href="@{/blog/{id}(id=${blog.id})}"
                               th:text="${blog.title}"
                               href="#">你真的理解什么是财富自由吗？</a>
                        </h3>
                        <p th:text="${blog.description}" class="font-text">
                            正确做好任何一件事情的前提是清晰、正确的理解目标。而事实是，我们很多人很多时候根本没有对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已…...</p>
                        <div class="ui grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img th:src="@{${blog.user.avatar}}"
                                             class="ui avatar image"
                                             src="http://xxstudy.cn/media/img/avatar_15.png"
                                             alt="">
                                        <div class="content">
                                            <a th:text="${blog.user.nickName}"
                                               class="header">唐人</a>
                                        </div>
                                    </div>
                                    <div class="item middle aligned">
                                        <i class="calendar icon"></i>
                                        <span th:text="${#dates.format(blog.updateDateTime,'yyyy-MM-dd')}"> 2020-11-21</span>
                                    </div>
                                    <div class="item middle aligned">
                                        <i class="eye icon"></i>
                                        <span th:text="${blog.lookCount}"></span>
                                    </div>
                                </div>
                            </div>
                            <div class="five wide column right aligned">
                                <a th:text="${blog.category.categoryName}"
                                   th:href="@{/category/{id}(id=${blog.category.id})}"
                                   class="ui label teal button" href="#" target="_blank">Android</a>
                            </div>
                        </div>

                    </div>

                    <div class="five wide column">
                        <a th:href="@{/blog/{id}(id=${blog.id})}"
                           target="_blank"
                           href="#">
                            <img th:src="@{${blog.imgUrl}}"
                                 class="ui rounded image max-img"
                                 src="https://unsplash.it/800/450?image=1005" alt="">
                        </a>
                    </div>
                </div>

                <!--标签-->
                <div class="row margin-top">
                    <a th:each="tag:${blog.tags}"
                       th:classappend="${tag.id==selectId}?'teal'"
                       th:href="@{/tags/{id}(id=${tag.id})}"
                       class="ui padding-mini  font-thin basic left pointing label margin"
                       href="#">
                        <span th:text="${tag.tagName}"></span>
                    </a>
                </div>
            </div>

            <!--/*-->
            <!--具体内容1-->
            <div class="ui padded vertical segment center-padding">
                <!--mobile reversed  手机端将图片放上面-->
                <div class="ui mobile reversed stackable grid">
                    <!--文字部分-->
                    <div class="eleven wide column">
                        <h3 class="ui header">你真的理解什么是财富自由吗？</h3>
                        <p class="font-text">
                            正确做好任何一件事情的前提是清晰、正确的理解目标。而事实是，我们很多人很多时候根本没有对目标正确的定义，甚至根本从来就没有想过，只是大家都那么做而已…...</p>
                        <div class="ui grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img class="ui avatar image"
                                             src="http://xxstudy.cn/media/img/avatar_15.png"
                                             alt="">
                                        <div class="content"><a href="#"
                                                                class="header">唐人</a></div>
                                    </div>
                                    <div class="item"><i class="calendar icon"></i>
                                        2020-11-21
                                    </div>
                                    <div class="item"><i class="eye icon"></i> 1258</div>
                                </div>
                            </div>
                            <div class="five wide column right aligned">
                                <a class="ui label teal button" href="#" target="_blank">Android</a>
                            </div>
                        </div>

                    </div>

                    <div class="five wide column">
                        <a href="#">
                            <img class="ui rounded image"
                                 src="https://unsplash.it/800/450?image=1005" alt="">
                        </a>
                    </div>
                </div>

                <!--标签-->
                <div class="row">
                    <a class="ui padding-mini  font-thin teal basic left pointing label margin"
                       href="#"
                       target="_blank">Android</a>
                </div>
            </div>
            <!--*/-->
        </div>

        <!--上下页-->
        <div class="ui bottom attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <a th:unless="${tagBlogListPage.first}"
                       th:href="@{'/tags/'+${selectId}(page=${tagBlogListPage.number}-1)}"
                       class="ui mini teal basic button" href="#">上一页</a>
                </div>
                <div class="column right aligned">
                    <a th:unless="${tagBlogListPage.last}"
                       th:href="@{'/tags/'+${selectId}(page=${tagBlogListPage.number}+1)}"
                       class="ui mini teal basic button" href="#">下一页</a>
                </div>
            </div>
        </div>

    </div>


</div>

</div>

<!--底部内容-->
<footer th:replace="fragment_base :: footer"  class="ui inverted vertical segment foot-padding">
    <div class="ui center aligned container ">
        <!--grid  分割成 16份-->
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img class="ui rounded image view-qr-width"
                             src="../static/img/me_wechat.png" alt=""
                             th:src="@{/img/me_wechat.png}"/>
                    </div>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="text-opacity-eight text-space">最新博客</h4>
                <div class="ui inverted link list ">
                    <a class="item" href="#">Android组件化开发...</a>
                    <a class="item" href="#">Activity生命周期详解...</a>
                    <a class="item" href="#">SpringBoot框架搭建...</a>
                </div>
            </div>
            <div class="three wide column">
                <h4 class="text-opacity-eight text-space">联系我</h4>
                <div class="ui inverted link list">
                    <a class="item" href="#">邮箱：wu_tangren@163.com</a>
                    <a class="item" href="#">QQ：996489865</a>
                    <div class="ui inverted">
                        <a href="#"> <i class="teal github icon"></i></a>
                        <a href="#"> <i class="teal blogger  icon"></i></a>
                    </div>
                </div>
            </div>
            <div class="seven wide column">
                <h4 class="text-opacity-eight text-space">简介</h4>
                <p class="text-opacity-six text-space">欢迎大家来到我的博客空间,我是唐人从事Android开发工作.</p>
            </div>
        </div>
        <div class="ui inverted  divider"></div>
        <p class="text-opacity-six text-space">Copyright © 2020 - 2021 PersonalBlog Designed by
            TangRen</p>
    </div>
</footer>

</body>
</html>